﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="activePage.aspx.cs" Inherits="activePage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
     <script type="text/javascript">
        var time = 5; //How long (in seconds) to countdown
        var page = "http://www.vieclamgap.net/"; //The page to redirect to
        function countDown(){
        time--;
        gett("container").innerHTML = time;
        if(time == -1){
        window.location = page;
        }
        }
        function gett(id){
            if(document.getElementById) return document.getElementById(id);
            if(document.all) return document.all.id;
            if(document.layers) return document.layers.id;
            if(window.opera) return window.opera.id;
        }
        function init(){
        if(gett('container')){
        setInterval(countDown, 1000);
        gett("container").innerHTML = time;
        }
        else{
        setTimeout(init, 50);
        }
        }
        document.onload = init();
      </script>
      <style type="text/css">
        .thongb
        {
        	margin:150px auto;
        	width:900px;
        	font-size:14px;
        	border: 2px solid #078e3a;
        	border-radius: 15px;
        	-moz-border-radius: 15px;
        	-webkit-border-radius: 15px;
        	-o-border-radius: 15px;
        	color:#0a3f88;
        	height:200px;
        	vertical-align:middle;
        	text-align:center;
        	padding-top:20px;
        }
        .thongb a 
        {
        	text-decoration:underline;
        }
      </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="thongb">
    <div id="tinkq">
        <asp:Label ID="lblMess" runat="server" Text="Label"></asp:Label>
    </div>
        <h4>Tự chuyển trang trong vòng <span id="container"></span> giây!</h4>
        <a href="http://www.vieclamgap.net">Chuyển ngay lập tức</a>
    </div>
    </form>
</body>
</html>
